-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support MetadataType Attribute #140
Conversation
Fine with me Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
Thank you. Much better explaination! Actually this is my first contribution to such a project... Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
src/Destructurama.Attributed/Attributed/AttributedDestructuringPolicy.cs
Outdated
Show resolved
Hide resolved
src/Destructurama.Attributed/Attributed/AttributedDestructuringPolicy.cs
Outdated
Show resolved
Hide resolved
src/Destructurama.Attributed/Attributed/AttributedDestructuringPolicy.cs
Outdated
Show resolved
Hide resolved
src/Destructurama.Attributed/Attributed/AttributedDestructuringPolicyOptions.cs
Show resolved
Hide resolved
src/Destructurama.Attributed/Attributed/AttributedDestructuringPolicyOptions.cs
Outdated
Show resolved
Hide resolved
src/Destructurama.Attributed/Attributed/AttributedDestructuringPolicyOptions.cs
Outdated
Show resolved
Hide resolved
…gPolicyOptions.cs Fine with me Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
@digitalsigi I suggest you to take my changes from destructurama:metadata into your branch and retarget it to |
I'll be glad to do so, but need first to find out how to do that. I am not so experienced in this corner ... |
…gPolicyOptions.cs Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
…gPolicyOptions.cs Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
Need additional review Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
I managed to create a new branch 'metadatatype' in my forked repo. Is it OK to open a new PR or do I have to do other things before? |
Up to you. |
I created a new branch and submitted a new PR. In this PR i saw a conflict but have no idea how to resolve. It looks like that there are changes in both master and PR. Could you please help me here? Thank you in advance |
Replaced by #142 |
Adds support from MetadataType Attribute, see #40
According to https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.metadatatypeattribute?view=net-9.0#remarks
Changed code replaces the PropertyInfo from base class with PropertyInfo property of MetadataType for equal named properties.